<div class="sidemenu">
    <h3>Popular News</h3>

    <ul>

		<?php
                    mysql_connect("localhost","root","");
                    mysql_select_db('noc');
                    $find = mysql_query("select * from `news`");
                    if ( mysql_numrows($find) > 0) {

                        while($display = mysql_fetch_assoc($find) ) {

                         
?>
        <li><a href="index.php?page=single_news&news_id=<?php echo $display['id'];?>"><?php echo $display['news_title'];?></a><span><?php echo substr($display['content'],0,50);?></span></li>
        
		
		      <?php
                    }
                }
				?>

    </ul>
</div>

<div class="sidemenu">
    <h3>You'd Like to</h3>
    <ul>
        <li><a href="http://www.themelayouts.com" title="Contact Us">Contact Us</a></li>
        <pre>Phone: +123456
Fax: +123456789
Address: 123 Put Your Address Here
E-mail: me@jungleland.com
For more info - <a href="index.php?page=about" title="Know about us">go to contact page</a>
        </pre>

        <li><a href="index.php?page=feedback" title="Write In To US">Feedback</a></li>
        <li><a href="http://www.dreamstock.com" title="Share This Site">Share</a></li>

    </ul>
</div>

<h3>Image Gallery </h3>

<p class="thumbs">
    <a href="index.php"><img src="images/thumb.jpg" width="40" height="40" alt="thumbnail" /></a>
    <a href="index.php"><img src="images/thumb.jpg" width="40" height="40" alt="thumbnail" /></a>
    <a href="index.php"><img src="images/thumb.jpg" width="40" height="40" alt="thumbnail" /></a>
    <a href="index.php"><img src="images/thumb.jpg" width="40" height="40" alt="thumbnail" /></a>
    <a href="index.php"><img src="images/thumb.jpg" width="40" height="40" alt="thumbnail" /></a>
    <a href="index.php"><img src="images/thumb.jpg" width="40" height="40" alt="thumbnail" /></a>
    <a href="index.php"><img src="images/thumb.jpg" width="40" height="40" alt="thumbnail" /></a>
    <a href="index.php"><img src="images/thumb.jpg" width="40" height="40" alt="thumbnail" /></a>
</p>